package com.jie.service;

import com.jie.pojo.UserAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jie.vo.CommonResponse;
import com.jie.vo.UserRegisteredVO;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaojie
 * @since 2023-11-01
 */
public interface UserAdminService extends IService<UserAdmin> {
    /**
     * 登录之后返回token
     * @param username
     * @param password
     * @param request
     * @return
     */
    CommonResponse login(String username, String password, String code, HttpServletRequest request);


    /**
     * 用户注册
     * @param userRegisteredVO 用户注册信息
     * @return
     */
    CommonResponse registeredUserAuth(UserRegisteredVO userRegisteredVO, HttpServletRequest request);
}
